<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>会员管理-会员评论</title>
		<jsp:include page="../../include/base.jsp"></jsp:include>
		<jsp:include page="../../include/common.jsp"></jsp:include>
		<jsp:include page="../../include/baseManage.jsp"></jsp:include>
	</head>
	<body>
		<div class="mini-toolbar"
			style="border: 0; font-size: 12px; padding-left: 6px;">
			<!-- 操作面板 -->
			<div class="operatePanel">
				<input class="mini-button" text="删除评论" iconCls="icon-remove"
					plain="false" onclick="CommentsHandler.delComments" visible="false" id="member_comments_del" />
				<input class="mini-button" text="展开查询" iconCls="icon-btn-expand"
					plain="false" onclick="CommentsHandler.queryShow" visible="false" id="member_comments_query" />
				<input class="mini-button" text="刷新" iconCls="icon-btn-refresh"
					plain="false" onclick="CommentsHandler.afresh" visible="false" id="member_comments_refresh" />
			</div>
			<!-- 查询面板 -->
			<div id="queryCommentsDiv" class="queryPanel">
				<form id="commentsQueryForm">
					<label class="queryPanelLbl">
						评论人：
					</label>
					<input class="mini-textbox" id="bucName" name="bucName" />
					<label class="queryPanelLbl">
						目标类型：
					</label>
					<input class="mini-textbox" id="bucType" name="bucType"
						textField="text" valueField="id" />
					<label class="queryPanelLbl">
						评论时间：
					</label>
					<input class="mini-datepicker" name="sbucTime" id="sbucTime"
						value="" format="yyyy-MM-dd HH:mm" showTime="true" width="150"/>
					<label class="queryPanelLbl">
						到
					</label>
					<input class="mini-datepicker" name="ebucTime" id="ebucTime"
						value="" format="yyyy-MM-dd HH:mm" showTime="true" width="150"/>
					<label class="queryPanelLbl">
						评论状态：
					</label>
					<input class="mini-combobox" id="bucState" textField="text"
						valueField="id" width="90"/>
					<input class="mini-button" text="查询" iconCls="icon-btn-search"
						plain="false" onclick="CommentsHandler.doQuery" />
				</form>
			</div>
		</div>
		<div class="mini-fit" id="commentsPanel">
			<div id="commentsGrid" class="mini-datagrid" fitColumns="true"
				style="width: 100%; height: 100%;" multiSelect="true" pageSize="20"
				borderStyle="border-bottom:0;border-left:0;border-right:0;"
				virtualScroll="true" idField="bmbEmail"
				url="<%=path%>/findMemberComments.do">
				<div property="columns">
					<div type="checkcolumn"></div>
					<div type="indexcolumn" width="40" headerAlign="center">
						序号
					</div>
					<div field="buc_name" name="buc_name" width="100"
						headerAlign="center" allowSort="true">
						评论人
					</div>
					<div field="buc_email" name="buc_email" width="90"
						headerAlign="center" align="center" allowSort="true">
						评论邮箱
					</div>
					<div field="buc_type" name="buc_type" width="50"
						headerAlign="center" align="center" allowSort="true">
						目标类型
					</div>
					<div field="buc_rank" name="buc_rank" width="50"
						headerAlign="center" align="center" allowSort="true">
						评论等级
					</div>
					<div field="buc_target" name="buc_target" width="110"
						headerAlign="center" align="center" allowSort="true">
						评论目标
					</div>
					<div field="buc_ip" name="buc_ip" width="70" headerAlign="center"
						align="center" allowSort="true">
						评论地址
					</div>
					<div field="buc_time" name="buc_time" width="120"
						headerAlign="center" dateFormat="yyyy-MM-dd HH:mm:ss"
						align="center" allowSort="true">
						评论时间
					</div>
					<div field="buc_state" name="buc_state" width="50"
						headerAlign="center" align="center" allowSort="true" renderer="onCommentState">
						评论状态
					</div>
					<div field="buc_id" name="buc_id" width="60" headerAlign="center"
						align="center" allowSort="true">
						操作
					</div>
				</div>
			</div>
		</div>
	</body>
	<script src="handler/CommentsHandler.js" type="text/javascript"></script>
</html>
